package com.xiaoma.lock.deadlock;

/**
 * @author xiaomacdut
 * @date 2020年2月25日 下午7:23:19
 */
public class Test{
    
    // static LockDemo demo = new LockDemo();
    public static void main(String [] args){
        LockDemo demo = new LockDemo();
        for(int i = 0; i < 10; i++){

            Thread thread = new Thread(){
                public void run(){
                    demo.print();
                    demo.test();
                }
            };
            thread.start();
        }
        
        System.out.println("main........");
        
        
    }
}
